package java8_26.chongwu;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest5 {
    public static void main(String[] args) {
         Dog d=new Dog("小五花","公",59,60,"哈士奇");
         d.print();
         //System.out.println(d.getStrain());
        //Object o=new Dog("小五花","公",59,60,"哈士奇");
//        int i=d.hashCode();
//        System.out.println(i);
        System.out.println(d.hashCode());
        System.out.println(d);
        //相等
        System.out.println(d.toString());

        Dog d2=d;
        System.out.println(d2==d);

        Dog d3=new Dog("大黄","公",59,60,"tianyuanquan");
        System.out.println(d3==d);
    }
}
